import axios from '../utils/request'

const apiPrefix = '/api'

export function login(data) {
  return axios.post(`${apiPrefix}/user/login`, data)
}

export function register(data) {
  return axios.post(`${apiPrefix}/user/register`, data)
}
